/**
  ******************************************************************************
  * @file    
  * @author  
  * @version 
  * @date    
  * @brief   
  ******************************************************************************
	* @attention
  *
  * <h2><center>&copy; COPYRIGHT 2012 STMicroelectronics</center></h2>
  *
  * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  * You may not use this file except in compliance with the License.
  * You may obtain a copy of the License at:
  *
  *        http://www.st.com/software_license_agreement_liberty_v2
  *
  * Unless required by applicable law or agreed to in writing, software 
  * distributed under the License is distributed on an "AS IS" BASIS, 
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
  ******************************************************************************
  */
  
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __HWCONF_H
#define __HWCONF_H

/* Includes ------------------------------------------------------------------*/
#include "stm32l1xx.h"
#include <stdio.h>

#include "exti.h"
#include "rcc.h"
#include "nvic.h"
#include "gpio.h"
#include "rtc.h"
#include "pwr.h"

#define ENABLE_DEBUG                        1
#define ENABLE_MCO                          0
#define ENABLE_EVENT                        0

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/

#if (ENABLE_EVENT == 1)

#define EVENT_HIGH()                        (GPIOA->BSRRL = GPIO_Pin_5)
#define EVENT_LOW()                         (GPIOA->BSRRH = GPIO_Pin_5)

#else

#define EVENT_HIGH()                        
#define EVENT_LOW()                         

#endif

/* Exported functions ------------------------------------------------------- */

#endif /* __HWCONF_H */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
